<template>
    <van-nav-bar :title="title" left-arrow @click-left="goBack" :style="{ '--van-nav-bar-icon-color': color }" />
</template>

<script setup>
import { useRouter } from 'vue-router';

const router = useRouter()
const goBack = () => {
    router.back()
}

defineProps({
    title: {
        type: String,
        default: ''
    },
    color: {
        type: String,
        default: ''
    }
})
</script>

<style lang="less" scoped></style>